<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <title>招聘 </title>
<head>
<link type="text/css" rel="stylesheet" href="../style/css/base.css" />
<link type="text/css" rel="stylesheet" href="../style/css/index.css" />
<link type="text/css" rel="stylesheet" href="../style/css/job.css" />
<script language="javascript">
var json;
function showDetail(id)
{
	document.getElementById("workDuty").innerHTML=json[id].workDuty;
	document.getElementById("workRequirement").innerHTML=json[id].workRequirement;
	document.getElementById("workPlace").innerHTML=json[id].workPlace;
}
function showJoblist(){
		var jobCategory="renshixingzhengchu";
		var xmlhttp;
		if (window.XMLHttpRequest)
 		 {// code for IE7+, Firefox, Chrome, Opera, Safari
 		 xmlhttp=new XMLHttpRequest();
 		 }
		else
 		 {// code for IE6, IE5
  		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  		}
		xmlhttp.onreadystatechange=function()
  		{
  		if (xmlhttp.readyState==4 && xmlhttp.status==200)
   		 {
   		    var txt = xmlhttp.responseText;
   		    json = eval('(' + txt + ')');
   		   // alert(txt);
   		  var element=document.getElementById("jobsList");
   		   for(var i=0;i<json.length;i++)
   		   {
   		   	var li=document.createElement("li");
   		   	var a=document.createElement("a"); 	
   		   	a.id=i;
   		    a.href="#";
   		   	a.innerHTML=json[i].position;
			li.appendChild(a);
			element.appendChild(li);
			a.onclick=function(){showDetail(this.id)};
   		   } 
   	
   		  showDetail(0);
   		  //alert("页面刷新了！！！！");
    	 }
 		}
		xmlhttp.open("GET","data/jobsService.jsp?method=SearchJobCategory&jobCategory="+jobCategory,true);
		xmlhttp.send();
}

</script>
</head>
<body onload="showJoblist()">
<%@include file="head.jsp" %>

<div id="main">
<div class="container">

<div id="job_menu">
<ul>
<li><a href="jobs.jsp" class="job_class1">研发处</a></li>
<li><a href="jobs_chanpinchu.jsp" class="job_class2">产品处</a></li>
<li><a href="jobs_guojiyewuchu.jsp" class="job_class3">国际业务处</a></li>
<li><a href="jobs_zhizaochu.jsp" class="job_class4">制造处</a></li>
<li><a href="jobs_caiwuchu.jsp" class="job_class5 ">财务处</a></li>
<li><a href="jobs_renshixingzhengchu.jsp" class="job_class6 selected">人事行政处</a></li>
</ul>
</div>
<div id="content_job">
<div id="jobList"><!-- 这里不用管他 -->
<ul id="jobsList"></ul>
<div class="clear"></div>
<div id="job-detail">
<div class="descript">
<b>【职位描述】</b>&nbsp;&nbsp;&nbsp;&nbsp;
<div class="job_detail" id="workDuty">
<br><br></div><br>
<b>【招聘要求】</b>&nbsp;&nbsp;
<p id="workRequirement"></p><br>
<b>【工作地点】</b>
<p id="workPlace"></p>

</div></div>
<p class="job_dtl sug" style="display: block;">温馨提示:<br>公司在每个学校招聘职位存在不同，请同学们投递时，参考您所在学校就业网上发布的职位信息！</p>
<div id="job_s_100061307" class="job_dtl sub" style="display: block;"><a href="apply.jsp">申请职位</a></div>
</div>
</div>
</div>

</div>
</div>
<%@include file="bottom.jsp" %>
</body>
</html>

